package cn.edu.xust.service;


import cn.edu.xust.entity.SysUserroleEntity;
import cn.edu.xust.util.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ufo
 * @email 2575829997@qq.com
 * @date 2022-09-06 17:32:09
 */
public interface SysUserroleService extends IService<SysUserroleEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SysUserroleEntity> getByUid(Integer uid);


    List<SysUserroleEntity> getByroleid(Integer roleid);


    /**
     *
     * @param uid
     * @param checked_role
     */
    boolean resetByuid(Integer uid, List<Integer> checked_role);

    boolean removeByUid(Integer uid);


}

